// src/api/volunteer.js
import request from '@/utils/request'

export function createVolunteer(data) {
	return request({ url: '/api/volunteer', method: 'post', data })
}
export function getMyVolunteers() {
	return request({ url: '/api/volunteer/mine', method: 'get' })
}
export function updateVolunteer(id, data) {
	return request({ url: `/api/volunteer/${id}`, method: 'put', data })
}
export function deleteVolunteer(id) {
	return request({ url: `/api/volunteer/${id}`, method: 'delete' })
}
// admin
export function getAllVolunteers(params) {
	return request({ url: '/api/volunteer/all', method: 'get', params })
}
export function reviewVolunteer(id, data) {
	return request({ url: `/api/volunteer/${id}/review`, method: 'post', data })
} 